/**
 * 
 */
package com.youth.fund.hk.hostManager.manager.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.youth.fund.hk.hostManager.common.dao.ICommonDao;
import com.youth.fund.hk.hostManager.common.service.impl.CommonService;
import com.youth.fund.hk.hostManager.manager.dao.CaseDao;
import com.youth.fund.hk.hostManager.manager.datamodel.CaseModel;
import com.youth.fund.hk.hostManager.manager.service.CaseService;
import com.youth.fund.hk.hostManager.manager.service.InitService;

/**
 * @author Sunk_Sky
 *
 * 2014年11月26日下午8:58:51
 */
@Service("CaseService")
public class CaseServiceImpl extends CommonService<CaseModel> implements CaseService
{
	@Autowired
	@Qualifier("InitService")
	private InitService initService;
	
	private CaseDao dao;
	
	@Autowired
	@Qualifier("CaseDao")
	@Override
	public void setCommonDao(ICommonDao<CaseModel> commonDao)
	{
		this.commonDao = commonDao;
		
		this.dao = (CaseDao) commonDao;
		
	}
	@Override
	public CaseModel getCaseByTypeId(int type_id)
	{
		CaseModel condition = new CaseModel();
		
		condition.setType_id(type_id);
		
		CaseModel result = dao.queryOne(condition);
		
		return result;
	}

	@Override
	public void generateHtml(CaseModel model)
	{
		
	}

}
